<template>
  <div class="my-tab-pane" v-if="show">
    <slot />
  </div>
</template>

<script>
export default {
  name: "MyTabPane",
  props: {
    label: String,
    value: String,
  },
  computed: {
    show() {
      return this.$parent.value == this.value;
    },
  },
};
</script>

<style>
</style>